<template>
  <div class="al_item">
    <div class="img">
      <img :src="img" alt="" />
    </div>
    <div class="info">
      <div class="title">{{ title }}</div>
      <div class="des">{{ des | getTxt}}</div>
      <div class="btns">
        <span class="zb"
          ><van-icon name="friends-o" />&nbsp;{{ nickname }}</span
        >
        <span class="track"><i class="font_family icon-shengyin_o"></i>&nbsp;{{ tracks }}</span>
        <span class="play"
          ><i class="font_family icon-Headset-2"></i>&nbsp;{{ play | getCount }}</span
        >
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    img: {
      type: String,
    },
    title: {
      type: String,
    },
    des: {
      type: String,
    },
    play: {
      type: Number,
    },
    tracks: {
      type: Number,
    },
    id: {
      type: Number,
    },
    nickname: {
      type: String,
    },
    url:{
        type:String
    }
  },
};
</script>

<style lang="scss" scoped>
.al_item {
  padding: 15px 0;
  
  display: flex;
  .img {
    width: 85px;
    height: 75px;
    > img {
      width: 70px;
      height: 70px;
      border-radius: 4px;
    }
  }
  .info {
    width: 270px;

    padding-right: 10px;
    .title {
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
      font-size: 16px;
      color: #333;
    }
    .des {
      margin: 5px 0 7px;
      font-size: 13px;
      line-height: 1.38;
      color: #999;
    }
    .btns {
      font-size: 11px;
      color: #999;
      .zb {
        max-width: 100px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        margin-right: 8px;
      }
      .track {
          margin-right: 10px;
      }
      .play{
          margin-right: 10px;
      }
    }
  }
}
</style>

